home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 16 / Developer Source Volume 16 (I-MODE Publications, Inc.)(1999).iso / dobbs / dec96 / shept101.gif < prev    next >
Graphics Interchange Format  |  1998-02-10  |  173KB  |  582x675  |  4-bit (16 colors)
Labels: text | font | menu | screenshot | paper | number
OCR: Oste TyperFunction Description (a) ESplType CROWColino Delines the type of splitter to be drawn, Valid types are sofiBok, soltBar, spiintersection, and spiBorder. Intemal stuckire that maintains the minimum, leal, and current size of a rowwoolun; For rows, values refer to height for columns, fields refer to with. (b) m_pDynamic VinwChiss Pointer to the CAunitimne Class information for the view (pane) to be dynamically created by CSplitterWhid m_nMaxhowsim_nMaxCols Specifiod in Creamy for dynamic splipors and CreateView) for static softer ... m_nRows'm_nCols Maximum number of rowscolumns as specified in the cal to Createf) or CreareStatief m_bHasHScrout_bHasVVScrow! Number of rows and columns currently being displayed in the CSplitterVind. Fags Ind cate If there is a horizontal or vertical scrollbar, Array of CRowlnio with one element for each column in CSpitterWind Value is thed in static splitter windows and m_pRowhb varias in dynamic softter windows .: they Array of CRowCollinlo with one element for each row in the CSplitterkind Value is fixed in static splter windows; varios in dynamic spliter windows. )m:ospiteom_cySpiller Woth and height of spitook and splitter. Value is 7 for Windows 95, 4 foxr NT. Values are O'if splitter window is drawing the border (Windows 95), or Tif border is drawn by Windows NT. "Gap between splitbond'split bar and the scrolbanborder. On NT, value is 6; on Windows 95, value is 7. rt cxBordann & Bordar Border wich of the splitter border. Value is 0 on NT; 2 on Windows 95. m __ bTracking? H True, user is dragging one spitlor bar, If True, user is dragging two splitter bars (m_bTracking will be true, too), If user drags the intersection point, both o pmTrackOfise! split bars must be tracked "Pkx size of the hit testing. Hit testinig is not imted to the exact widthvhaight of a spitbox/split bar. m_piTrackOffset gives the user some. my moc Tracker Size of a pane during tracking, Lsed to determine the height of the tracking split bar. Rectangle used to draw the split bar when tracking .; Archingle used to draw the second spit bar when tracking (f user is dragging two vis an intersection). mohli rack Set by the CSplinterhind hitemcking mochaniem to an enumeration that describes the splitor window component that was hi. Called by Created and CreateStatico once they have Initial zed the dynamic and static specific members of Great Scroll BarCho Creates scrolbar with the specified style and identifier. Responds to scrollbar messages. DoSeroly) Synchronizes the approprialo pones. DOSCONEAU Scrolls appropriate panes by a specified amount DokeyboardSplit CanActivateNext() Caled to cause the window to spl. Caled to find out If next pane can be activated =- If It can be given focus. Called by diass CView. Used to activate next pene. Usually called when a pane is deleted to change the focus before dying. Positioning for the splitor window. Called after a pane is created and also atter ? is destroyed. TrackRows zet Updates mapRowinfo array information for specified row. Also dotenninos 3 thest is enough room for the row and d not, deletes it (dynamic; only), GetSizing Parenty) Seme as above, but for a column. Retrieves a sizable parent window (Windows 95 only). Drives the splitter window drawing process by making calls to OnDrawSpier for each of the splitter window OnDrawSplinterD) components to be drawn, OnDrive Somen) dniws the different splmor window components. OnDrawSplitr? is virtual, So you can modify the OnPainto appearance of the spiner windows if you want to. Caled In response to a WWW_PAINT massa08. Takes a point and medims hit-best value for IL. Similar to GolChantAoch), except il takes into account shared scrolbars. SetSplCursor() Retrieves hit rectangle for specifiod spitter window component. Uses hit testing to determine which cursor to display, If the mouse is over a splitook or spit bar, SotSpisCursord) displays sizing arrows. If mouse is over an intersecton, displays four way arrows. ( StartTrackingn Stop Trackingt Starts tracking operation based on hit test value. Called by DokeyboardSpith and OnLButtonDown. Stops tracking operason. Called by OWN ButtonDNICikt Onl BunchUp", and other functions that want to stop Tracking for various reasons. Inverts kadar during rubber banding CSplitterWind handes WM_NOCREATE messane so that i can remove WS_EX_CLIENTEDGE cofondod syle bit. CSolderWind draws S-D border so that splitters can appear to be part of border, OnDisplay ChangeD Draws spitter-window components." Called when users change the monitor resolution. OnDisplayChange0 calls Recalctayoud) to update the splitter OnSize1) windows for the new setting Ontdouselfoven Call AocncLayout) when the user resizes the spiller window Ohl ButtonDown( Performs hit testing on splitter window components. Performs hit testing; if users click on's spitter-window component, starts tracking. Hit ieste double cick; if users double click on spiltbox, automatically splits the window in half. M'users double cick splitter bar, split is removed. OnKayDowny) Stops tracking. Providos soquoncos that controlspilli --- window tracking. Table 1: (a) Encapsulated data types; (b) creation/layout data members; (c) cosmetic data members; (d) tracking data members; (e) general member functions; (D) layout member functions; (g) drawing member functions; (b) bit-test member functions; (V) tracking member functions: (1) message handlers.